home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene Storm
/
Scene Storm - Volume 1.iso
/
coding
/
c
/
pdc
/
libsrc
/
stringlib
/
index.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-04-07
|
262 b
|
17 lines
/*
* index - find first occurrence of a character in a string
*/
#include "config.h"
#define NULL 0
char * /* found char, or NULL if none */
index(s, charwanted)
CONST char *s;
char charwanted;
{
extern char *strchr();
return(strchr(s, charwanted));
}